package cn.com.utt.unms.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import cn.com.utt.unms.pojo.Ad;

@Mapper
public interface AdMapper {
	@Insert("insert into ad(user_id,path,link,status,type,create_time,width,height) values(#{userId},#{path},#{link},#{status},#{type},#{createTime},#{width},#{height})")
	@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
	void addAd(Ad ad);

}
